package ac.il.technion.cs236369.hw5.core.servlets.orders;

import java.util.ArrayList;
import java.util.Collection;

public class AvailableSlotsContainer {
	
	private Collection<OrderTimeSlot> items = new ArrayList<OrderTimeSlot>( );

	
	public AvailableSlotsContainer( Boolean slots[]) {
		for ( int i = 0; i < slots.length; ++i) {
			if ( slots[i])
				continue;
			items.add( new OrderTimeSlot( i));
		}
	}
	
	public Collection<OrderTimeSlot> getItems() {
		return items;
	}

	public void setItems(Collection<OrderTimeSlot> items) {
		this.items = items;
	}
}
